package com.aq.appserver.common.util;

public class DateUtil {

	public static boolean jisuan(String date1, String date2) throws Exception { 
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-M-d HH:mm:ss"); 
        java.util.Date start = sdf.parse(date1); 
        java.util.Date end = sdf.parse(date2); 
        long cha = end.getTime() - start.getTime(); 
        double result = cha * 1.0 / (1000 * 60 * 60); 
        if(result<=24){ 
             return true; 
        }
        return false;
    } 
}
